package cn.lg.soar.boot.nc.entity;

import cn.lg.soar.core.annotations.constraints.group.*;
import cn.lg.soar.database.query.annotations.*;
import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.*;
import io.swagger.annotations.*;
import lombok.Data;
import java.io.Serializable;
import java.time.*;
import javax.validation.constraints.*;

import cn.lg.soar.database.base.entity.BaseEntity;

/**
 * 注意事项表
 * @author BoBo
 * @since 2025-02-17
 * 开源项目：https://gitee.com/lgx1992/lg-soar 求star！请给我star！请帮我点个star！
 */
@Data
@ApiModel(value = "Precautions", description = "注意事项表")
@TableName("nc_precautions")
public class Precautions extends BaseEntity {

    /**  */
    @NotNull(message = "主键不能为空", groups = { Update.class })
    @ExcelIgnore
    @ApiModelProperty(value = "主键")
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 标题 */
    @NotBlank(message = "标题不能为空", groups = { Create.class, Update.class })
    @ExcelProperty(value = "标题")
    @ApiModelProperty(value = "标题")
    private String title;

    /** 发布图 */
    @NotBlank(message = "发布图不能为空", groups = { Create.class, Update.class })
    @ExcelProperty(value = "发布图")
    @ApiModelProperty(value = "发布图")
    private String releaseimg;

    /** 页面是否显示 1为显示 2为不显示 */
    @NotNull(message = "页面是否显示 1为显示 2为不显示不能为空", groups = { Create.class, Update.class })
    @ExcelProperty(value = "页面是否显示 1为显示 2为不显示")
    @ApiModelProperty(value = "页面是否显示 1为显示 2为不显示")
    private Integer pagedisplay;

    /** 内容摘要 */
    @NotBlank(message = "内容摘要不能为空", groups = { Create.class, Update.class })
    @ExcelProperty(value = "内容摘要")
    @ApiModelProperty(value = "内容摘要")
    private String pushabstract;

    /** 发布内容 */
    @NotBlank(message = "发布内容不能为空", groups = { Create.class, Update.class })
    @ExcelProperty(value = "发布内容")
    @ApiModelProperty(value = "发布内容")
    private String content;

    /** 排序 */
    @ExcelProperty(value = "排序")
    @ApiModelProperty(value = "排序")
    private Integer orders;

    /** 扩展字段1 */
    @ExcelProperty(value = "扩展字段1")
    @ApiModelProperty(value = "扩展字段1")
    private String extend1;

    /** 扩展字段2 */
    @ExcelProperty(value = "扩展字段2")
    @ApiModelProperty(value = "扩展字段2")
    private String extend2;

    /** 扩展字段3 */
    @ExcelProperty(value = "扩展字段3")
    @ApiModelProperty(value = "扩展字段3")
    private String extend3;

    /** 乐观锁 */
    @ExcelProperty(value = "乐观锁")
    @ApiModelProperty(value = "乐观锁")
    private Integer version;

    @JsonIgnore
    @Override
    public Long primaryKey() {
        return this.id;
    }

}
